<template>
  <div>
    <div v-loading="dataLoading">
      <!-- 基础信息 -->
      <base-info :base-info="detailData" />
      <!-- 图纸信息 -->
      <!-- <drawing-info :base-info="detailData" /> -->
      <!-- 配图分配信息 -->
      <distribute :base-info="detailData" />
      <!-- 配图配置信息 -->
      <config-info :base-info="detailData" />
      <!-- 设计单位确认信息 -->
      <studio-confirm :base-info="detailData" />
      <!-- 配图配置最终信息 -->
      <config-info :config-type="1" :base-info="detailData" />
      <!-- 转化分配 -->
      <trans-distribute :base-info="detailData" />
      <!-- 图纸转化信息 -->
      <drawing-trans :base-info="detailData" />
      <!--确图信息 窗帘信息 解锁信息 异常明细 -->
      <detail-item :base-info="detailData" />

    </div>
  </div>
</template>
<script>
import BackPageMixin from '@/mixins/backPage'
import { queryDetail } from '@/api/autoDesignTask'
import baseInfo from './component/BaseInfo.vue'
import drawingInfo from './component/DrawingInfo.vue'
import configInfo from './component/ConfigInfo.vue'
import distribute from './component/distributeInfo.vue'
import studioConfirm from './component/StudioConfirm'
import transDistribute from './component/TransDistribute'
import drawingTrans from './component/DrawingTransInfo'
import detailItem from './component/DetailItem.vue'
export default {
  name: 'DetailAutoDesignTask',
  components: { baseInfo, drawingInfo, configInfo, distribute, studioConfirm, transDistribute, drawingTrans, detailItem },
  mixins: [BackPageMixin],
  props: {
  },
  data() {
    return {
      id: '',
      detailData: {},
      submitLoading: false,
      saveLoading: false,
      dataLoading: false,
      formData: {
        id: ''
      }
    }
  },
  watch: {
  },
  async  created() {
    this.id = this.$route.query.id
    if (this.id) {
      this.dataLoading = true
      queryDetail(this.id).then(res => {
        if (res.success) {
          this.detailData = res.data
          this.dataLoading = false
        }
      })
    }
    this.dataLoading = false
  },
  mounted() {
  },
  methods: {

  }
}
</script>
<style lang="scss" scoped>
/deep/ .el-breadcrumb__inner{
    color: $qup-color-primary;
  }
</style>
